home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1986 November
/
Ahoy_Magazine_86-11_1986_Double_L.d64
/
Datawriter 64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
1KB
|
37 lines
0 print"[147][144]":poke53280,6:poke53281,1
1 print"datawriter....64 version":print:print
2 rem datawriter - 64
3 rem rupert report #35
4 rem
5 rem *** c-64 version ***
6 rem
7 rem =================================
20 f$="time1" :rem default filename
30 open15,8,15:open8,8,8,f$+",w"
40 input#15,ds,ds$ :dd=ds :if dd<>0 then goto 1000
50 rem ********************************
60 rem this loop generates the data
70 rem and writes it to disk
80 rem --------------------------------
90 for n=1 to 100
100 t2=ti^2
110 print#8,t2
120 ss=st: if ss<>0 then 1000
130 print n; :rem show activity
140 next
150 rem --------------------------------
160 rem end of loop
170 rem ********************************
180 close8:close15
190 end
1000 rem -- error handler --
1010 close8 :close15 :if dd=63 then 1030
1020 print :print ds$ :print "i/o status error # ";ss : end
1030 print "file "f$" exists."
1040 a$="" : input "do you want to write over it (y/n) (return to exit)";a$
1050 if a$="" then end
1060 if a$="y" then open15,8,15,"s:"+f$:close15 : goto 30
1070 if a$<>"n" then 1040
1080 input"what filename do you want";f$
1090 goto 30